﻿@model IEnumerable<MVC3AppCodeFirst.Models.Student>

@{
    ViewBag.Title = "Index";
}

@section Navigation
{ 
    <div class="NavigationLeft">Student<br />
    @Html.ActionLink("Home", "Index", "Home")<br />
    @Html.ActionLink("Students", "Index", "Student")<br />
    @Html.ActionLink("Assignments", "Index", "Home")<br />
    @Html.ActionLink("News", "Index", "Home")<br />
    @Html.ActionLink("Tests", "Index", "Home")<br />
    @Html.ActionLink("Score", "Index", "Home")<br />
    @Html.ActionLink("Courses", "CourseMenu", "Home")
    </div>
}

@section MainContent
{
    <div class="MainCourse">

    <table>
        <tr>
            <th>
                Name
            </th>
            <th></th>
        </tr>
    
    @foreach (var student in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => student.Name)
            </td>
        </tr>
    }
    </table>
    <p>
        @Html.ActionLink("Back to List", "Navigation", "Home")
    </p>
    </div>
}